package com.zpark.service;

import com.zpark.entity.Books;

import java.util.List;

/**
 * @PackageName: com.zpark.service
 * @ClassName: IBooksService
 * @Description:
 * @author: RZS
 * @date: 2023/5/8  15:58
 */
public interface IBooksService {
    // 添加books数据
    Integer addBooks(Books books);

    // 根据id删除books
    Integer delBooksById(Integer id);

    // 修改books
    Integer changeBooksById(Books books);

    // 查询所有books
    List<Books> findAll();

    // 根据books名字模糊查询books
    List<Books> findBooksByLikeName(String bName);

    // 根据id查询数据
    Books findById(Integer id);
}
